# Configuration file for the Sphinx documentation builder.
#
# For the full list of built-in configuration values, see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html

# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
import os
import sys
# 将项目根目录添加到Python路径（根据实际路径调整）
# sys.path.insert(0, os.path.abspath(r'..\..')) # 从doc/source到项目根目录需要上跳两级
sys.path.insert(0, os.path.abspath('../../'))

project = '端口扫描'
copyright = '2025, 张有泽'
author = '张有泽'
release = '2.0.0'

# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration

extensions = [
    'sphinx.ext.autodoc',   # 自动提取文档
    'sphinx.ext.viewcode',  # 显示源代码链接
    'sphinx.ext.napoleon'   # 支持Google风格文档字符串
]


templates_path = ['_templates']
exclude_patterns = []

language = 'zh_CN'

# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output

html_theme = 'alabaster'
html_static_path = ['_static']



